<!DOCTYPE html>
<html>

<head>
    <title>Bootstrap 按钮组</title>
    <meta charset="utf-8">
    <!-- 适应移动设备 -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="./css/bootstrap.css">
    <script src="./jquery-3.5.1.min.js"></script>
    <script src="./js/bootstrap.js"></script>
</head>

<body>
    <br>
    <div class="container" style="border: 1px solid red;">
        <div class="btn-group">
            <button type="button" class="btn btn-default">按钮 1</button>
            <button type="button" class="btn btn-default">按钮 2</button>
            <button type="button" class="btn btn-default">按钮 3</button>
        </div>
    </div>


    <br>
    <div class="container" style="border: 1px solid red;">
        <div class="btn-toolbar" role="toolbar">
            <div class="btn-group">
                <button type="button" class="btn btn-default">按钮 1</button>
                <button type="button" class="btn btn-default">按钮 2</button>
                <button type="button" class="btn btn-default">按钮 3</button>
            </div>
            <div class="btn-group">
                <button type="button" class="btn btn-default">按钮 4</button>
                <button type="button" class="btn btn-default">按钮 5</button>
                <button type="button" class="btn btn-default">按钮 6</button>
            </div>
            <div class="btn-group">
                <button type="button" class="btn btn-default">按钮 7</button>
                <button type="button" class="btn btn-default">按钮 8</button>
                <button type="button" class="btn btn-default">按钮 9</button>
            </div>
        </div>
    </div>

    <br>
    <div class="container" style="border: 1px solid red;">
        <div class="btn-group">
            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                默认<span class="caret"></span>
            </button>
            <ul class="dropdown-menu" role="menu">
                <li>
                    <a href="#">功能</a>
                </li>
                <li>
                    <a href="#">另一个功能</a>
                </li>
                <li>
                    <a href="#">其他</a>
                </li>
                <li class="divider"></li>
                <li>
                    <a href="#">分离的链接</a>
                </li>
            </ul>
        </div>
        <div class="btn-group">
            <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
                原始<span class="caret"></span>
            </button>
            <ul class="dropdown-menu" role="menu">
                <li>
                    <a href="#">功能</a>
                </li>
                <li>
                    <a href="#">另一个功能</a>
                </li>
                <li>
                    <a href="#">其他</a>
                </li>
                <li class="divider"></li>
                <li>
                    <a href="#">分离的链接</a>
                </li>
            </ul>
        </div>
    </div>
</body>

</html>